New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

krl-compiler

Package Overview
Dependencies
Maintainers
3
Versions
125
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

krl-compiler

KRL compiler

  • 1.3.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
31
decreased by-61.25%
Maintainers
3
Weekly downloads
 
Created
Source

krl-compiler

KRL to javascript compiler.

API

var compile = require('krl-compiler');

var js_string = compile(krl_string);

//it can also take an ast as input
var js_string = compile(krl_ast);

Note, this function is synchronous (since there is no I/O) and will throw errors when needed.

CLI

The compiler can be used via shell. It takes KRL code in stdin and write the javascript code to stdout.

$ npm install -g krl-compiler
$ krl-compiler < in.krl > out.js
USAGE
    krl-compiler [--verify] [--no-source-map] [--help, -h]

DESCRIPTION
    Take krl as stdin and will give js as stdout
    $ krl-compiler < in.krl > out.js

OPTIONS
    --no-source-map
        Don't append an inline source map in the output

    --verify
        On valid compilation silently exit with 0
        On failure write the error to stdout and exit with 1

    --version, -v
        output the version

    --help, -h
        Display this message

License

MIT

Keywords

FAQs

Package last updated on 29 Jul 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc